import time
from lib.sensors.gesture import PAJ7620U2
from lib.sensors.servo import geekservo

gesture = PAJ7620U2.GESTURE()
servo = geekservo.GeekServo(0)

while True:
    current_ges = gesture.get_gesture()
    print("get_gesture: ", current_ges)

    if current_ges == "Backward":
        print("Backward")
        servo.write_angle(180)
    if current_ges == "Forward":
        print("ForWard")
        servo.write_angle(0)

    time.sleep(1)
